{% extends "site/base_site.html" %}
{% load bootstrap3 %}

{% block title %}{{ title }}{% endblock %}
{% block content %}
    <div class="sign-box">
        <h1>创建新帐号</h1>
        {% bootstrap_messages %}
        {% bootstrap_form_errors form %}
        <form action="{% url 'register' %}" method="post">
            {% csrf_token %}
            <h2>团队信息</h2>
            {% bootstrap_field form.team %}
            <h2>个人信息</h2>
            {% bootstrap_field form.nickname %}
            {% bootstrap_field form.email %}
            {% bootstrap_field form.password1 %}
            <p>点击“创建团队”表示您已经同意《<a href="#">服务条款</a>》</p>

            <div class="form-group">
                <button type="submit" class="btn btn-primary">创建团队</button>
                <a href="{% url 'home' %}">&lt;返回首页</a>
            </div>
        </form>
    </div>
{% endblock %}